import unittest
from ui_auto2.config.config import *
from ui_auto2.public.utils.HTMLTestRunner3_New import HTMLTestRunner
from time import strftime

discover=unittest.defaultTestLoader.discover(start_dir=bbs_test_path,pattern="test*.py")
now=strftime("%Y-%m-%d-%H-%M-%S")
f=open(report_path+"//"+now+"_cms_ui_auto_report.html","wb")
runner=HTMLTestRunner(stream=f,title="cms_ui_auto_report",description="用例执行情况如下",tester="TL")
runner.run(discover)
